package com.ny.service;

import com.ny.entity.User;

import java.util.List;

public interface UserService {
    public List<User> findAllUser();
    public User login(String username,String password);
    public User findUserByUsername(String userbame);
    int registerUser(User user);
    User findUserByEmail(String email);
    public void sendEmailCode(String email);
    int updatePasswordByEmail( String email,  String password);
    boolean checkCode(String email, String code);
}
